//
//  ZLPersonModel.m
//  谓词的使用
//
//  Created by unisedu on 16/1/11.
//  Copyright © 2016年 CaoFei. All rights reserved.
//

#import "ZLPersonModel.h"

@implementation ZLPersonModel
- (instancetype)initWithName:(NSString *)name age:(NSUInteger)age sex:(ZLPersonSex)sex
{
    if (self = [super init]) {
        _name = name;
        _age = age;
        _sex = sex;
    }
    return self;
}

+ (instancetype)personWithName:(NSString *)name age:(NSUInteger)age sex:(ZLPersonSex)sex
{
    return [[self alloc] initWithName:name age:age sex:sex];
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"[name = %@, age = %ld, sex = %ld]", self.name, self.age, self.sex];
}
@end
